package com.sz.wu.service.impl;

import com.sz.wu.mapper.ProductMapper;
import com.sz.wu.model.Product;
import com.sz.wu.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductMapper productMapper;

    @Override
    public List<Product> showAll() {
        //显示所有的商品
        return productMapper.showAll();
    }

    @Override
    public List<Product> Like(String like) {
        return productMapper.Like(like);
    }
}
